package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 节点检测结果对象 mes_Product_node_result
 *
 * @author guoxl
 * @date 2025-04-26
 */
public class MesProductNodeResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Long id;

    /** 归属子系统编码 */
    @Excel(name = "归属子系统编码")
    private String subsysCode;

    /** 节点标识 */
    @Excel(name = "节点标识")
    private Long nodeId;

    /** 节点顺序 */
    @Excel(name = "节点顺序")
    private Long sortIndex;

    /** 站位编码 */
    @Excel(name = "站位编码")
    private String stationCode;

    /** 节点IP */
    @Excel(name = "节点IP")
    private String ip;

    /** 订单标识 */
    @Excel(name = "订单标识")
    private Long orderId;

    /** 产品标识 */
    @Excel(name = "产品标识")
    private Long productId;

    /** 产品条码 */
    @Excel(name = "产品条码")
    private String partNumber;

    /** 委托单号 */
    @Excel(name = "委托单号")
    private String orderNo;


    /** 检测报文头json */
    @Excel(name = "检测报文头json")
    private String testHeader;

    /** 检测内容json */
    @Excel(name = "检测内容json")
    private String testDetail;

    /** 检测结果 1:合格 2:不合格 */
    @Excel(name = "检测结果")
    private String testResult;
    /** 产品线编码 */
    @Excel(name = "产品线编码")
    private String modelCode;

    /** 检测结果 (1:有效，9：作废)*/
    @Excel(name = "状态")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updater;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    /** 机器型号 */
    @Excel(name = "机器型号")
    private String machineModel;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getSubsysCode() { return subsysCode; }

    public void setSubsysCode(String subsysCode) { this.subsysCode = subsysCode; }

    public void setNodeId(Long nodeId)
    {
        this.nodeId = nodeId;
    }

    public Long getNodeId()
    {
        return nodeId;
    }
    public void setSortIndex(Long sortIndex)
    {
        this.sortIndex = sortIndex;
    }

    public Long getSortIndex()
    {
        return sortIndex;
    }
    public void setStationCode(String stationCode)
    {
        this.stationCode = stationCode;
    }

    public String getStationCode()
    {
        return stationCode;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setPartNumber(String partNumber)
    {
        this.partNumber = partNumber;
    }

    public String getPartNumber()
    {
        return partNumber;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }

    public String getTestHeader() { return testHeader; }

    public void setTestHeader(String testHeader) { this.testHeader = testHeader; }

    public void setTestDetail(String testDetail)
    {
        this.testDetail = testDetail;
    }

    public String getTestDetail()
    {
        return testDetail;
    }

    public String getTestResult() {  return testResult; }

    public void setTestResult(String testResult) { this.testResult = testResult; }

    public String getModelCode() { return modelCode; }

    public void setModelCode(String modelCode) { this.modelCode = modelCode; }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setUpdater(String updater)
    {
        this.updater = updater;
    }

    public String getUpdater()
    {
        return updater;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }
    public void setMachineModel(String machineModel)
    {
        this.machineModel = machineModel;
    }

    public String getMachineModel()
    {
        return machineModel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("subsysCode", getSubsysCode())
                .append("nodeId", getNodeId())
                .append("sortIndex", getSortIndex())
                .append("stationCode", getStationCode())
                .append("ip", getIp())
                .append("orderId", getOrderId())
                .append("productId", getProductId())
                .append("partNumber", getPartNumber())
                .append("orderNo", getOrderNo())
                .append("testHeader", getTestHeader())
                .append("testDetail", getTestDetail())
                .append("testResult", getTestResult())
                .append("status", getStatus())
                .append("creator", getCreator())
                .append("createTime", getCreateTime())
                .append("updater", getUpdater())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("machineModel", getMachineModel())
                .toString();
    }
}
